#include "stdafx.h"
#include "StdInclude.h"
#include "Texture.h"

Texture::Texture():
m_pTexture(NULL), m_Angle(0.0f), m_Scale_X(1.0f), m_Scale_Y(1.0f),
m_Transfer_X(0.0f), m_Transfer_Y(0.0f)
{
}

Texture::~Texture()
{
	
}

void	Texture::SetElement(EELEMENT_TYPE _ElementType, float _Value)
{
	switch(_ElementType)
	{
	case ALPHA:
		m_Alpha = _Value;
		break;
	case WIDTH:
		m_Width = _Value;
		break;
	case HEIGHT:
		m_Height = _Value;
		break;
	case ANGLE:
		m_Angle = _Value;
		break;
	case SCALE_X:
		m_Scale_X = _Value;
		break;
	case SCALE_Y:
		m_Scale_Y = _Value;
		break;
	case TRANSFER_X:
		m_Transfer_X = _Value;
		break;
	case TRANSFER_Y:
		m_Transfer_Y = _Value;	
		break;
	case ENHANCECOLOR:
		m_EnhanceColor = _Value;
		break;
	default:
		break;
	}
}

float	Texture::GetElement(EELEMENT_TYPE _ElementType)
{
	switch(_ElementType)
	{
	case ALPHA:
		return m_Alpha;
	case WIDTH:
		return m_Width;
	case HEIGHT:
		return m_Height;
	case ANGLE:
		return m_Angle;
	case SCALE_X:
		return m_Scale_X;
	case SCALE_Y:
		return m_Scale_Y;
	case TRANSFER_X:
		return m_Transfer_X;
	case TRANSFER_Y:
		return m_Transfer_Y;
	case ENHANCECOLOR:
		return m_EnhanceColor;
	default:
		break;
	}
}

void	Texture::SetTexture(void* _Texture)
{
	m_pTexture = _Texture;
}

void*	Texture::GetTexture()
{
	return m_pTexture;
}